package lormi.meipin.vo;

import lormi.meipin.common.Constants;
import lormi.meipin.util.DateUtil;

/**
 * 商家通知栏数据结构
 * */
public class MerchantNoticeVo {
	
	private Integer memid;

	private Integer userid;
	
	private String photo;
	
	private String positionclass;
	
	private Integer experience;
	
	private Long salary;
	
	private String hostcity;
	
	private String updatetime;
	
	private Integer type;//1:关注（收藏）,2:查看,3：新发布
	
	private String content;
	
	private String url;
	
	private String date;

	public Integer getMemid() {
		return memid;
	}
	
	public Integer getUserid() {
		return memid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public void setMemid(Integer memid) {
		this.memid = memid;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getPositionclass() {
		return positionclass;
	}

	public void setPositionclass(String positionclass) {
		this.positionclass = positionclass;
	}

	public Integer getExperience() {
		return experience;
	}

	public void setExperience(Integer experience) {
		this.experience = experience;
	}

	public Long getSalary() {
		return salary;
	}

	public void setSalary(Long salary) {
		this.salary = salary;
	}

	public String getHostcity() {
		return hostcity;
	}

	public void setHostcity(String hostcity) {
		this.hostcity = hostcity;
	}
	/**
	 * 设置更新时间
	 * */
	public String getUpdatetime() {
		return DateUtil.getDate(this.updatetime);
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 设置不同类型的提示内容
	 * */
	public String getContent() {
		this.content = Constants.getContent(this.type,2);
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 设置不同类型的地址
	 * */
	public String getUrl() {
		this.url = Constants.getUrl(type);
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 设置自定义的时间
	 * */
	public String getDate() {
		return DateUtil.getTime(this.date);
	}

	public void setDate(String date) {
		this.date = date;
	}
	
}
